package com.cgsrp.cgsrp_shopping.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.cgsrp.cgsrp_shopping.domain.UserWallet;
import com.cgsrp.cgsrp_shopping.dao.UserWalletMapper;
import com.cgsrp.cgsrp_shopping.service.UserWalletService;
@Service
public class UserWalletServiceImpl implements UserWalletService{

    @Resource
    private UserWalletMapper userWalletMapper;

    @Override
    public int insert(UserWallet record) {
        return userWalletMapper.insert(record);
    }

    @Override
    public int insertSelective(UserWallet record) {
        return userWalletMapper.insertSelective(record);
    }

    @Override
    public UserWallet selectByUserId(Integer creatBy) {
        return userWalletMapper.selectByUserId(creatBy);
    }

    @Override
    public int update(UserWallet userWallet) {
        return userWalletMapper.update(userWallet);
    }

}
